	window.onload = function(){	
		var p =document.getElementsByTagName('p');//所有的标签都是数组形式的
	 var time = function time () {
				var over_time = Date.UTC(2016,5,15);
				var star_time = new Date();
				star_time = star_time.getTime();
				//document.write(overtime);
				var time = over_time - star_time;
				var run_time = '离2016年6月15号还有';
				var data=time/(1000*24*60*60)
				run_time += Math.floor(data)+"天"+",";
				hours = Math.floor((time - (Math.floor(data)*(1000*24*60*60)))/(1000*60*60));
				run_time += Math.floor(hours)+":";
				var minute = Math.floor((time - (Math.floor(data)*(1000*60*60*24)) - (Math.floor(hours)*(1000*60*60)))/(1000*60));
				run_time += Math.floor(minute)+":";
				var second = Math.floor((time - Math.floor(data)*(1000*60*60*24) - Math.floor(hours)*(1000*60*60) - Math.floor(minute)*(1000*60))/1000);
				run_time += Math.floor(second);
				// var run_time=123;
				// document.write(run_time);
				p[0].innerHTML = run_time;
			}
			
			setInterval(time, 1000);
		}